import React,{Suspense} from 'react';
import './App.css'
import { useRoutes } from 'react-router-dom'
import routerConfig from './router/routerConfig';
const App = () => {

  return (
    <div className='app'>
     <Suspense fallback={<div>loading...</div>}>
        {
          useRoutes(routerConfig)
        }
      </Suspense>
    </div>
  );
};

export default App;